package com.situ.lession1226.dao;

import com.situ.lession1226.model.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsDAO {
    /**
     * 获取所有学生信息的接口
     *
     * @return
     */
    List<News> findAll(News search);

    News findById(Integer id);

    int deleteByIds(Integer[] ids);


    int save(News news);

    int update(News news);
}
